package com.gu.myviewmodel.ui.secondpage.ui

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.gu.myviewmodel.base.BaseFragment
import com.gu.myviewmodel.databinding.FragmentSecondBinding

class SecondFragment : BaseFragment() {
    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
        super.onCreateView(inflater, container, savedInstanceState)
        val binding = FragmentSecondBinding.inflate(inflater, container, false)
        binding.returnBtn.setOnClickListener {
            parentFragmentManager.popBackStack()
        }
        return binding.root
    }

    override fun findTag() = TAG

    companion object {
        const val TAG = "SecondFragment"
    }
}